<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<%@page pageEncoding="UTF-8"%>
<%@page contentType="text/html;charset=UTF-8"%>

<%@ page import="com.conversationboard.view.MainMenu"%>
<%@ page import="com.conversationboard.config.Configuration"%>
<%@ page import="com.conversationboard.model.*" %>
<%@ page import="com.conversationboard.controller.confirm.Confirm"%>
<%@ page import="com.conversationboard.view.Page"%>

<html>

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
	<title>Login Failed</title>
	<link rel="stylesheet" type="text/css" href="<%= Configuration.getInstance().getRoot() %>/Stylesheets/<%=StyleSheets.getStyleSheetFileName(request.getCookies())%>">
</head>

<body>

	<%= MainMenu.display(request.getUserPrincipal(), Page.DEFAULT, false) %>

	<div class="headingblock">
		<h1>Login Failed</h1>
	</div>

	<div class="mainblock">
	
		<div class="formsectionlight">
		
			<p>Your login failed. Please enter your username and password again. Make sure you use the correct case.</p>

			<p><a href="<%= Configuration.getInstance().getRoot() %>/index.jsp">Return to Front Page</a></p>

			<form class="formsection" action="<%= Configuration.getInstance().getRoot() %>/DeleteCookiesControllerServlet" method="post">
				<p>If your automatic login is failing, it could be because you have changed your password on a
				   different computer and the password is now out of sync with the one stored on this computer.
				   Click here to remove the cookies this your computer.</p>
				<%= Confirm.getKey() %>			
		 		<input type="submit" value="Remove Cookies" />
			</form>
		
		</div>
		

	</div>

	<!--<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>-->
	<!--<script type="text/javascript">_uacct = "UA-1148679-1";urchinTracker();</script>--> 

</body>
</html>
